/**
 * 
 */
package de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.tests;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types.PunctuationFeatures;
/**
 * @author Christoph Teichmann
 * created Jun 9, 2014 3:20:43 PM
 * @version 0.1
 */
public class TestPunctuationFeatures
{
	/**
	 * 
	 */
	private PunctuationFeatures pf;
	/**
	 *
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception
	{pf = new PunctuationFeatures();}
	/**
	 * Test method for {@link de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types.PunctuationFeatures#process(java.lang.String)}.
	 */
	@Test
	public final void testProcess()
	{assertEquals("daa-.,f::adfa","daa-.,f::adfa");}
	/**
	 * Test method for {@link de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types.PunctuationFeatures#name()}.
	 */
	@Test
	public final void testName()
	{assertEquals(pf.name(),"PUNCTUATIONFEATURES");}
	/**
	 * Test method for {@link de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types.GenericFeatureGenerator#getFeatName(java.lang.String)}.
	 */
	@Test
	public final void testGetFeatName()
	{
		assertEquals(pf.getFeatName(":::Llas"),"STARTPUNCT");
		assertEquals(pf.getFeatName("adasd:::Llas"),"MIXED");
		assertEquals(pf.getFeatName("Llas"),"NOPUNCT");
		assertEquals(pf.getFeatName(":::"),"ONLYPUNCT");
		assertEquals(pf.getFeatName("asdad:-:"),"ENDPUNCT");
	}
	/**
	 * Test method for {@link de.uni_leipzig.informatik.asv.unsupervised_pos_tagger.datacreation.feature_types.GenericFeatureGenerator#getFeatureOptions()}.
	 */
	@Test
	public final void testGetFeatureOptions()
	{assertEquals(pf.getFeatureOptions().toString(),"[STARTPUNCT, ONLYPUNCT, ENDPUNCT, NOPUNCT, MIXED]");}
}